home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / makefiles / Makerules.allobj < prev    next >
Text File  |  1993-10-31  |  1KB  |  53 lines

  1. all:    ${TARGETS}
  2.  
  3. # lib: In a library derived from several source directories
  4. #   (with a common parent), update the archive from one of the subdirectories.
  5. #   Used to simply use ``${AR} r ${LIB} ${OBJS}'', but can't on the NeXT if
  6. #   we use fat libraries; their "ar" can create fat libraries from scratch
  7. #   but cannot update them, so we must remove the library and rebuild from its
  8. #   complete set of object files.  (Removing the library is done in mk.NeXT's
  9. #   definition of ${AR}.
  10.  
  11. lib:    ${OBJS}
  12.     cd ../..; ${MAKE} lib
  13.  
  14. ${LIB}:    ${OBJS}
  15.     ${AR} r $@ ${OBJS}
  16.     ${RANLIB} $@
  17.  
  18. .PRECIOUS: ${LIB} ${COMMONLIB}
  19.  
  20. commonlib:    ${OBJS}
  21.     @echo "[The parent 'make' rebuilds lib${NAME}.a; to force building it here, use 'make lib'.]
  22.  
  23. OTHER_DISTFILES_CMD = echo Mkdep
  24.  
  25. #
  26. # We rely on 'make depend' to take care of ${OBJS} dependencies 
  27. #
  28.  
  29. install:    all
  30.     @:
  31.  
  32. depend:
  33.     cd ..; ${MAKE} $@
  34.  
  35. rm_libs:
  36.     rm -f ${TARGETS}
  37.  
  38. rm_depend:
  39.     > ${MKDEPFILE}
  40.  
  41. distclean:    _clean_c_files
  42.  
  43. _clean_c_files:
  44.     echo -rm -f *.c
  45.  
  46. installbin:    ${TARGETS}
  47.     ${INSTALL} -m 775 -O -v -F ${BINDIR} ${TARGETS}
  48.  
  49. include ${GEOM}/makefiles/Makerules.clean
  50. include ${GEOM}/makefiles/Makerules.common
  51.  
  52. include ${MKDEPFILE}
  53.